import { createRouter, createWebHistory } from 'vue-router'

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path:'/protectList',
      name:'protect',
      component:()=>import('@/views/protect.vue')
    },
    {
      path:'/protectAdd',
      name:'add',
      component:()=>import('@/views/protectAddOrEdit.vue')
    },
    {
      path:'/protectUpdate/:id',
      name:'update',
      component:()=>import('@/views/protectAddOrEdit.vue')
    },
  ],
})

export default router
